﻿using huqiang;
using huqiang.Core.HGUI;
using huqiang.UIModel;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using UnityEngine;

public class TestScene : TestPageHelper
{
    public HGUIRender GUIRender;
    public string pageName;
    public override void LoadTestPage()
    {
        UIElement.DisposeAll();
        HCanvas.RegCanvas(GUIRender);
        HCanvas.CurrentCanvas = GUIRender.canvas;
        App.Initial(GUIRender.canvas);
        var ass = Assembly.GetAssembly(typeof(TestScene));
        var typ =ass.GetType(pageName);
        if (typ != null)
            UIPage.LoadPage(typ);
    }
}
